import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages';

export default defineUniPages({
    globalStyle: {
        // 导航栏字体颜色
        navigationBarTextStyle: '@navTxtStyle',
        // 导航栏背景色
        navigationBarBackgroundColor: '@navBgColor',
        // 导航栏背景底色
        backgroundColor: '@bgColor'
    },
    easycom: {
        autoscan: true,
        custom: {
            '^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)': 'z-paging/components/z-paging$1/z-paging$1.vue',
            '^byt-(.*)': '@/uni_modules/byt-ai-agent-uni/components/agent-dialogue/byt-$1/byt-$1.vue'
        }
    },
    pages: [
        // ai对话列表页面
        {
            path: 'uni_modules/byt-ai-agent-uni/pages/listHome',
            style: {
                navigationBarTitleText: 'ai对话智能体列表',
                navigationStyle: 'custom',
                enablePullDownRefresh: false,
                disableScroll: true,
                'app-plus': {
                    bounce: 'none' // 将回弹属性关掉
                }
            }
        },
        // ai对话主对话页面
        {
            path: 'uni_modules/byt-ai-agent-uni/pages/index',
            style: {
                navigationBarTitleText: 'ai对话',
                navigationStyle: 'custom',
                enablePullDownRefresh: false,
                disableScroll: true,
                'app-plus': {
                    bounce: 'none' // 将回弹属性关掉
                }
            }
        }
    ],
    tabBar: {
        color: '#999999',
        selectedColor: '#5474f2',
        backgroundColor: '#ffffff',
        custom: true,
        borderStyle: 'black',
        height: '0px',
        fontSize: '0px',
        iconWidth: '0px',
        spacing: '3px',
        list: [
            {
                iconPath: '/static/tabBar/home_default.png',
                selectedIconPath: '/static/tabBar/home_active.png',
                pagePath: 'pages/index/index',
                text: '首页'
            },
            {
                iconPath: '/static/tabBar/my_default.png',
                selectedIconPath: '/static/tabBar/my_active.png',
                pagePath: 'pages/my/index',
                text: '我的'
            }
        ]
    }
});
